import React from 'react';
import { Link } from 'react-router';
import { Row, Col } from 'antd';
import FormRegister from '../../components/formRegister';
import Header from '../../components/header';

export default class Register extends React.Component{
    constructor(props){
        super(props)
    }
    static contextTypes = {
        router: React.PropTypes.object
    };
    render(){
        return(
            <Row>
                <Col  xs={{span:22,offset:1}}
                      sm={{span:18,offset:3}}
                      md={{span:12,offset:12}}
                      lg={{span:12,offset:6}}
                     style={{
                        marginTop:'20px',
                        padding:'0 0 20px',
                        marginBottom:'20px',
                        backgroundColor:'#fff'}}
                    >
                    <FormRegister _r = {this.context.router} onSub={this.onSub} />
                </Col>
            </Row>
        )
    }
}